<?php 
    echo json_encode(array('result' => $view->result));